@set ParamCulture=%1
@if "%ParamCulture%" == "" goto Help

resgen Images.resx VsTortoise.Images.%ParamCulture%.resources
if exist Texts.%ParamCulture%.resx ( resgen Texts.%ParamCulture%.resx VsTortoise.Texts.%ParamCulture%.resources ) else ( resgen Texts.resx VsTortoise.Texts.%ParamCulture%.resources )
al.exe /embed:VsTortoise.Images.%ParamCulture%.resources /embed:VsTortoise.Texts.%ParamCulture%.resources /t:lib /culture:%ParamCulture% /version:"1.0.*" /prod:"VsTortoise %ParamCulture% Resources" /productversion:"1.0.0.0" /out:VsTortoise.resources.dll
mkdir ..\bin\%ParamCulture%\
copy /y VsTortoise.resources.dll ..\bin\%ParamCulture%\VsTortoise.resources.dll


@del VsTortoise.resources.dll
@del VsTortoise.Texts.resources
@del VsTortoise.Texts.%ParamCulture%.resources
@del VsTortoise.Images.%ParamCulture%.resources
@set ParamCulture
@goto Done


: Help
@echo Generates a satellite dll for the specified culture
@echo Usage..: build.cmd CultureName
@echo Example: build.cmd en-US
@goto Done

: Error
@pause

: Done

